RedDemandantesForms = function(){
	var itemsInGroupTipLicencia = [];
	var itemsInGroupDocumentos = [];
	var itemsInGroupTipoVehiculo = [];
	return{
		seccionControlDemandante: function(ctgOficina,sgdUsuario,ctgDocumento){
//		Ext.Ajax.request({
//			timeout: Asg.constants.TIMEOUT_SECONDS,
//			url: Asg.constants.CONTEXT_PATH + "/admin/demandante/consultarDemandante",
//		    params: {
//		    	redDemandanteFolio:  RedNacionalEmpleo.getRedDemandanteFolio()
//			},
//			callback: function(options, success, response){
//				if(success){
//					var jsonObject = Asg.Utils.ajaxRequestGetJson(response);
//					alert(jsonObject.success);
//					if(jsonObject && jsonObject.success){
//					
						return {
							xtype: "form",
							id: "formRegistroDemandante",
							bodyPadding: "5 5 5 5",
							frame: true,
							layout: {
								type: "table",
								columns: 2,
								tableAttrs: {
									style: {width: "420px"},
									align: "center"
								}
							},
							defaults: Asg.Form.defaults({width: 410, labelAlign: "rigth"}),
							items:[
							       {
							    	   xtype: "numberfield",
							    	   name: "redDemandanteFolio",
							    	   fieldLabel: "No de Folio",
							    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							    	   readOnly: true,
							    	   colspan: 2,
							    	   columWidth: 410,
							    	   width: 225
							       },{
							    	   xtype: "datefield",
							    	   name: "redDemandanteFechaRegistro",
							    	   fieldLabel: "Fecha Registro",
							    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							    	   readOnly: true,
							    	   width: 225,
							    	   colspan: 2,
							    	   columWidth: 410,
							    	   value: new Date(),
							    	   submitFormat: "Ymd"
							       },{
							    	   xtype: "combobox",
							    	   name: "ctgOficina",
							    	   fieldLabel: "Oficina",
							    	   colspan: 2,
							    	   width: 410,
							    	   columWidth: 410,
							    	   afterLabelTextTpl: Asg.constants.REQUIRED,
							    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							    	   allowBlank:false,
							    	   store: new Ext.data.SimpleStore({
							    		   data: ctgOficina || [],
							    		   fields: ["id","value"]
							    	   }),
							    	   valueField: "id",
							    	   displayField: "value"
							       },{
							    	   xtype: "combobox",
							    	   name: "sgdUsuario",
							    	   fieldLabel: "Gestor(a) de Empleo",
							    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							    	   colspan: 2,
							    	   width: 410,
							    	   columnWidth: 410,
							    	   afterLabelTextTpl:  Asg.constants.REQUIRED,
							    	   allowBlank:false,
							    	   store: new Ext.data.SimpleStore({
							    		   data: sgdUsuario || [],
							    		   fields: ["id","value"]
							    	   }),
							    	   valueField: "id",
							    	   displayField: "value"
							       },{
							    	   xtype: "combobox",
							    	   name: "ctgDocumento",
							    	   id: "ctgDocumentoId",
							    	   fieldLabel: "Identificaci\u00F3n",
							    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							    	   width: 205,
							    	   columnWidth: 205,
							    	   afterLabelTextTpl:  Asg.constants.REQUIRED,
							    	   allowBlank:false,
							    	   store: new Ext.data.SimpleStore({
							    		   data: ctgDocumento || [], 
							    		   fields: ["id","value"]
							    	   }),
							    	   valueField: "id",
							    	   displayField: "value"
							       },{
							    	   xtype: "textfield",
							    	   name: "redDemandanteNumeroDocumento",
							    	   id: "redDemandanteNumeroDocumento",
							    	   fieldLabel: "N\u00FAmero",
							    	   afterLabelTextTpl:  Asg.constants.REQUIRED,
							    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							    	   allowBlank: false,
							    	   labelWidth: 75,
							    	   width: 205,
							    	   columnWidth: 205
							       } 
							       ]
						};
//					}
//				}
//			}
//		});
		},
		datosPersonalesDemandante: function(ctgMunicipios,ctgGenero,ctgEstadoCivil,ctgTipoLicencia,ctgDocumentoVigentes,
				ctgTipoVehiculo){
			var storeTipoLicencia = new Ext.data.SimpleStore({
				data: ctgTipoLicencia || [],
				fields: ["id", "value"]
			});
			storeTipoLicencia.each( function(record) {
				itemsInGroupTipLicencia.push({
					boxLabel: record.data.value,
					name: "redDemandante.ctgTipoLicencia.ctgCatalogoId",
					inputValue: record.data.id
				});
			});
			var storeDocumentosVigentes = new Ext.data.SimpleStore({
				data: ctgDocumentoVigentes || [],
				fields: ["id", "value"]
			});
			storeDocumentosVigentes.each(function(record){
				itemsInGroupDocumentos.push({
					boxLabel: record.data.value,
					name: "ctgDocuementoVigente",
					inputValue: record.data.id
				});
			});
			var storeTipoVehiculo = new Ext.data.SimpleStore({
				data: ctgTipoVehiculo || [],
				fields: ["id","value"]
			});
			storeTipoVehiculo.each(function(record){
				itemsInGroupTipoVehiculo.push({
					boxLabel: record.data.value,
					name: "redDemandante.ctgTipoVehiculo.ctgCatalogoId",
					inputValue: record.data.id
				});
			});
			return {
				xtype: "form",
				id: "formDatosPersonalesDemandante",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			}, 
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 550, labelAlign: "rigth"}),
	        	items: [{
	        		xtype: "fieldset",
	        		title: "DATOS PERSONALES",
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items: [{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Nombre Completo",
	                	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                	labelWidth: 125,
	                    layout: "hbox",
	                    combineErrors: true,
	                    afterLabelTextTpl:  Asg.constants.REQUIRED,
	                    defaultType: "textfield",
	                    defaults: {
	                        hideLabel: "true"
	                    },
	                    items: [{
	                        name: "redDemandanteNombres",
	                        id: "redDemandanteNombres",
	                        fieldLabel: "Nombres",
	                        flex: 2,
	                        emptyText: "Nombres",
	                        allowBlank: false
	                    }, {
	                        name: "redDemandanteApellidos",
	                        id: "redDemandanteApellidos",
	                        fieldLabel: "Apellidos",
	                        flex: 3,
	                        margins: "0 0 0 6", 
	                        emptyText: "Apellidos",
	                        allowBlank: false
	                    }]
	                },{
        	        	xtype: 'combo',
        	            store: new Ext.data.SimpleStore({
        					data: ctgMunicipios || [],
        					fields: ["id", "value"]
        				}),
        	            displayField: 'value',
        	            typeAhead: false,
        	            flex:1,
        	            allowBlank: false,
        	            valueField: "id",
        	            afterLabelTextTpl:  Asg.constants.REQUIRED,
        	            id: "ctgMunicipioNacimiento",
        	            name: "redDemandante.ctgMunicipioNacimiento.ctgMunicipioId",
        	            labelWidth: 125,
        	            fieldLabel: "Lugar de Nacimiento",
        	            labelStyle: Asg.constants.LABEL_STYLE_TEXT,
        	            hideTrigger:true,
        	            listConfig: {
        	                loadingText: 'Buscando...',
        	                emptyText: 'No matching posts found.',
        	                // Custom rendering template for each item
        	                getInnerTpl: function() {
        	                    return '<b>DEPARTAMENTO / MUNICIPIO:</b><br> {id} - {value}';
        	                }
        	            },
        	            pageSize: 10
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	        	        	xtype: "datefield",
	        	        	id: "redDemandanteFechaNacimiento",
	        	        	name: "redDemandanteFechaNacimiento",
	        	        	fieldLabel: "Fecha de Nacimieno",
	        	        	afterLabelTextTpl:  Asg.constants.REQUIRED,
	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	        	        	allowBlank:false,
	        	        	width: 200,
	        	        	labelWidth: 125,
	        	        	flex: 1,
	        	        	maxValue: new Date(),
	        	        	submitFormat: "Ymd"
	        	        },{
	        	        	xtype: "combobox",
	        	        	name: "redDemandante.ctgGenero.ctgCatalogoId",
	        	        	id: "ctgGenero",
	        	        	fieldLabel: "Sexo",
	        	        	emptyText: "<<SELECCIONE>>",
	        	        	width: 205,
	        	        	labelWidth: 125,
	        	        	margins: "0 0 0 6", 
	        	        	flex: 1,
							afterLabelTextTpl:  Asg.constants.REQUIRED,
							labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							allowBlank:false,
							store: new Ext.data.SimpleStore({
								data: ctgGenero || [], 
								fields: ["id","value"]
							}),
							valueField: "id",
							displayField: "value"
	        	        }]
	                },{
                		xtype: "combobox",
                		name: "redDemandante.ctgEstadoCivil.ctgCatalogoId",
                		id: "ctgEstadoCivil",
                		fieldLabel: "Estado Civil",
                		allowBlank: false,
                		emptyText: "<<SELECCIONE>>",
                		afterLabelTextTpl: Asg.constants.REQUIRED,
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		width: 300,
                		labelWidth: 125,
                		store: new Ext.data.SimpleStore({
                			data: ctgEstadoCivil || [],
                			fields: ["id","value"]
                		}),
                		valueField: "id",
                		displayField: "value"
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	        	        	xtype: "numberfield",
	        	        	id: "redDemandantePeso",
	        	        	name: "redDemandantePeso",
	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,	
	        	        	minValue: 0,
	        	        	fieldLabel: "Peso",
	        	        	width: 200,
	        	        	labelWidth: 125,
	        	        	emptyText: "lbs",
	        	        	flex: 1
	        	        },{
	        	        	xtype: "numberfield",
	        	        	name: "redDemandanteEstatura",
	        	        	fieldLabel: "Estatura",
	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	        	        	minValue: 0,
	        	        	margins: "0 0 0 6", 
	        	        	width: 205,
	        	        	emptyText: "cms",
	        	        	labelWidth: 125,
	        	        	flex: 1
	        	        }]
	                },{
                		xtype: "textfield",
                		name: "redDemandanteCorreo",
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		fieldLabel: "Correo Electr\u00F3nico",
                		labelWidth: 125,
                		vtype: "email",
                		flex: 1
	                }]
	        	},{
	        		xtype: "fieldset",
	        		title: "DATOS DOMICILIO",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	                    	xtype: "radiogroup",
	                    	width: 280,
	                    	anchor: "none",
	                    	id: "redDemandanteZonaResidenciaId",
	                    	fieldLabel: "Zona Residencia",
	                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    	labelWidth: 125,
	                    	defaults: {
	                    		autoFlex: false
	                    	},
	                    	items:[{
	                    		inputValue: "1",
	                    		name: "redDemandante.redDemandanteZonaResidencia",
	                    		boxLabel: "Urbana",
	                    		checked: true
	                    	},{
	                    		inputValue: "2",
	                    		name: "redDemandante.redDemandanteZonaResidencia",
	                    		boxLabel: "Rural"
	                    	}]
	                    }]
	                },{
                    	xtype: "textarea",
                    	fieldLabel: "Direcci\u00F3n Actual",
                    	name: "redDemandanteDireccion",
                    	labelWidth: 125,
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                        flex: 1,
                        allowBlank: false
	                }]
	        	},{
	        		xtype: "fieldset",
	        		title: "OTROS DATOS",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
                    	xtype: "radiogroup",
                    	width: 280,
                    	anchor: "none",
                    	id: "redDemandanteLicenciaId",
                    	labelWidth: 160,
                    	fieldLabel: "Licencia de Conducir",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
        	            listeners:{
        	            	change: function(el,val) {
                    			if(this.getValue()["redDemandanteLicencia"] == "1"){
                    				Ext.getCmp("containerClaseLicencia").show();
                    			}else{
                    				Ext.getCmp("containerClaseLicencia").hide();
                    			}
                    		}
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandanteLicencia",
                    		checked: true,
                    		boxLabel: "NO"
                    	},{
                    		inputValue: "1",
                    		name: "redDemandanteLicencia",
                    		boxLabel: "SI"
                    	}]
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	id: "containerClaseLicencia",
	                	hidden: true,
	                	items:[{
	        	        	xtype: "radiogroup", 
	        	        	id: "ctgTipoLicencia",
	        	        	name: "redDemandante.ctgTipoLicencia.ctgCatalogoId",
	        	        	fieldLabel: "Clase de Licencia",
	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	        	        	labelWidth:125,
	        	        	flex: 1,
	        	        	columns: 3,
	        	            vertical: true,
	        	            cls: 'x-check-group-alt',
	        	        	defaults: {
	        	        		style: "margin-right:15px"
	        	        	},
	        	        	items: itemsInGroupTipLicencia
	        	        }]
	                },{
                    	xtype: "radiogroup",
                    	width: 280,
                    	anchor: "none",
                    	id: "redDemandanteLicenciaArmaId",
                    	labelWidth: 160,
                    	fieldLabel: "Licencia Portaci\u00F3n de Armas",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandanteLicenciaArma",
                    		checked: true,
                    		boxLabel: "NO"
                    	},{
                    		inputValue: "1",
                    		name: "redDemandanteLicenciaArma",
                    		boxLabel: "SI"
                    	}]
	                },{
                		xtype:"checkboxgroup",
                		fieldLabel: "Documentos de Identidad",
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		labelWidth: 160,
                		flex: 1,
                		columns: 3,
                		id: "ctgDocuementoVigenteId",
                		cls: 'x-check-group-alt',
        	            vertical: true,
        	        	defaults: {
        	        		style: "margin-right:15px"
        	        	},
                		items: itemsInGroupDocumentos
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	                    	xtype: "radiogroup",
	                    	width: 280,
	                    	anchor: "none",
	                    	id: "redDemandanteVehiculoId",
	                    	labelWidth: 160,
	                    	fieldLabel: "Veh\u00EDculo",
	                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    	defaults: {
	                    		autoFlex: false
	                    	},
	        	            listeners:{
	        	            	change: function(el,val) {
	                    			if(this.getValue()["redDemandanteVehiculo"] == "1"){
	                    				Ext.getCmp("containerTipoVehiculo").show();
	                    				Ext.getCmp("redDemandanteAnioVehiculo").show();
	                    			}else{
	                    				Ext.getCmp("containerTipoVehiculo").hide();
	                    				Ext.getCmp("redDemandanteAnioVehiculo").hide();
	                    			}
	                    		}
	                    	},
	                    	items:[{
	                    		inputValue: "0",
	                    		name: "redDemandanteVehiculo",
	                    		checked: true,
	                    		boxLabel: "NO"
	                    	},{
	                    		inputValue: "1",
	                    		name: "redDemandanteVehiculo",
	                    		boxLabel: "SI"
	                    	}]
	                    },{
	                    	xtype: "numberfield",
	                    	hidden: true,
	                    	minValue: 0,
	                    	fieldLabel: "A\u00F1o del Veh\u00EDculo",
	                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    	width: 205	,
	                    	name: "redDemandanteAnioVehiculo",
	                    	id: "redDemandanteAnioVehiculo"
	                    }]
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	id: "containerTipoVehiculo",
	                	hidden: true,
	                	items:[{
	        	        	xtype: "radiogroup", 
	        	        	id: "ctgTipoVehiculo",
	        	        	name: "redDemandante.ctgTipoVehiculo.ctgCatalogoId",
	        	        	fieldLabel: "Tipo de Veh\u00EDculo",
	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	        	        	labelWidth:125,
	        	        	cls: 'x-check-group-alt',
	        	        	flex: 1,
	        	        	columns: 3,
	        	            vertical: true,
	        	        	defaults: {
	        	        		style: "margin-right:15px"
	        	        	},
	        	        	items: itemsInGroupTipoVehiculo
	        	        }]
	                },{
                    	xtype: "radiogroup",
                    	width: 280,
                    	anchor: "none",
                    	id: "redDemandanteDiscapacidadId",
                    	labelWidth: 160,
                    	fieldLabel: "Tiene alguna discapacidad\u003F",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandanteDiscapacidad",
                    		checked: true,
                    		boxLabel: "NO"
                    	},{
                    		inputValue: "1",
                    		name: "redDemandanteDiscapacidad",
                    		boxLabel: "SI"
                    	}]
	                },{
                    	xtype: "numberfield",
                    	hidde: true,
                    	fieldLabel: "N\u00FAmero de personas que dependen de usted",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	labelWidth: 300,
                    	width: 360,
                    	minValue: 0,
                    	name: "redDemandanteDependientes",
                    	id: "redDemandanteDependientes"
	                },{
                    	xtype: "radiogroup",
                    	width: 370,
                    	anchor: "none",
                    	id: "redDemandantePrivadoId",
                    	labelWidth: 300,
                    	fieldLabel: "Desea mantener sus datos en el an\u00F3nimato\u003F",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandantePrivado",
                    		checked: true,
                    		boxLabel: "NO"
                    	},{
                    		inputValue: "1",
                    		name: "redDemandantePrivado",
                    		boxLabel: "SI"
                    	}]
	                }]
	               
	        	}]
			};
		},
		formacionAcademicaDemandante: function(ctgEscolaridad,ctgEspecialidad,ctgIdioma,ctgNivelIdioma){
			Ext.define("redFormacionAcademicaModel",{
				extend: "Ext.data.Model",
				fields:[
			        "redDemandanteFolio",
			        "ctgEscolaridadId",
			        "ctgEscolaridadNombre",
			        "ctgEspecialidadId",
			        "ctgEspecialidadNombre",
			        "redFormacionDemandanteInstitucion"
		        ]
			});
			var storeFormacionAcademica = Ext.create("Ext.data.Store", {
				autoLoad: true,
				model: "redFormacionAcademicaModel",
				proxy: {
			        type: "ajax",
			        url: Asg.constants.CONTEXT_PATH + "/formacion/doSearch",
			        reader: {
			        	type: "array",
			        	root: "list"
	        		}
			    }
			});
			
			return{
				xtype: "form",
				id: "formDatosFormacionAcademica",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			}, 
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 550, labelAlign: "rigth"}),
	        	items:[{
	        		xtype: "fieldset",
	        		title: "FORMACI\u00D3N ACAD\u00C9MICA", 
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items: [{
                		xtype: "combobox",
        	        	name: "ctgEscolaridad",
        	        	fieldLabel: "Escolaridad",
        	        	emptyText: "<<SELECCIONE>>",
        	        	width: 205,
        	        	labelWidth: 175,
        	        	margins: "0 0 0 6", 
        	        	flex: 1,
						afterLabelTextTpl:  Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
						allowBlank:false,
						store: new Ext.data.SimpleStore({
							data: ctgEscolaridad || [], 
							fields: ["id","value"]
						}),
						valueField: "id",
						displayField: "value"
	                },{
                		xtype: "combobox",
        	        	name: "ctgEspecialidad",
        	        	fieldLabel: "Especialidad",
        	        	emptyText: "<<SELECCIONE>>",
        	        	width: 205,
        	        	labelWidth: 175,
        	        	margins: "0 0 0 6", 
        	        	flex: 1,
						afterLabelTextTpl:  Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
						allowBlank:false,
						store: new Ext.data.SimpleStore({
							data: ctgEspecialidad || [], 
							fields: ["id","value"]
						}),
						valueField: "id",
						displayField: "value"
	                },{
                		xtype: "textfield",
                		name: "redFormacionDemandanteInstitucion",
                		fieldLabel: "Centro de Estudios",
                		labelWidth: 175,
                		flex: 1,
						afterLabelTextTpl:  Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                        margins: "0 0 0 6", 
                        allowBlank: false
                	},{
                		xtype: "fieldcontainer",
                		layout: "hbox",
                		items:[{
                			xtype: "grid",
                			id: "gridFormacionAcademica",
                			margins: "5 5 5 5",
                			title: "FORMACI\u00D3N ACAD\u00C9MICA",
                			flex: 1,
                			store: storeFormacionAcademica,
        					columns: [
    					          {text: "Escolaridad",dataIndex: "ctgEscolaridadNombre", width: 150},
    					          {text: "Especialidad",dataIndex: "ctgEspecialidadNombre", width: 150},
    					          {text: "Centro de Estudios",dataIndex: "redFormacionDemandanteInstitucion",flex:1}
				          	],
				          	tbar: [
			        	       {text: "Agregar", iconCls: Asg.constants.SAVE_ICON}
		        	        ]
                		}]
                	}]
	        	},{
            		xtype: "fieldset",
	        		title: "IDIOMAS EXTRANJEROS", 
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items: [{
                		xtype: "combobox",
        	        	name: "ctgIdioma",
        	        	fieldLabel: "Idioma",
        	        	emptyText: "<<SELECCIONE>>",
        	        	width: 205,
        	        	labelWidth: 175,
        	        	margins: "0 0 0 6", 
        	        	flex: 1,
						afterLabelTextTpl:  Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
						allowBlank:false,
						store: new Ext.data.SimpleStore({
							data: ctgIdioma || [], 
							fields: ["id","value"]
						}),
						valueField: "id",
						displayField: "value"
	                },{
                		xtype: "combobox",
        	        	name: "ctgNivelIdioma",
        	        	fieldLabel: "Nivel",
        	        	emptyText: "<<SELECCIONE>>",
        	        	width: 205,
        	        	labelWidth: 175,
        	        	margins: "0 0 0 6", 
        	        	flex: 1,
						afterLabelTextTpl:  Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
						allowBlank:false,
						store: new Ext.data.SimpleStore({
							data: ctgNivelIdioma || [], 
							fields: ["id","value"]
						}),
						valueField: "id",
						displayField: "value"
	                },{
                		xtype: "fieldcontainer",
                		layout: "hbox",
                		items:[{
                			xtype: "grid",
                			id: "gridIdiomasDemandante",
                			margins: "5 5 5 5",
                			title: "FORMACI\u00D3N",
                			flex: 1,
                			store: storeFormacionAcademica,
        					columns: [
    					          {text: "Idioma",dataIndex: "ctgEscolaridadNombre", flex: 1},
    					          {text: "Nivel",dataIndex: "ctgEspecialidadNombre", flex: 1}
				          	],
				          	tbar: [
			        	       {text: "Agregar", iconCls: Asg.constants.SAVE_ICON}
		        	        ]
                		}]
                	}]
            	}]
			};
		},
		formacionConocimientosHabilidades: function(){
			
		},
		formacionPuestoyExpriencia: function(){
			return {
				xtype: "form",
				id: "formDatosFormacionAcademica",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			}, 
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 550, labelAlign: "rigth"}),
	        	items:[{
	        		xtype: "fieldset",
	        		title: "PUESTO QUE BUSCA Y EXPERIENCIA LABORAL", 
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                }
	        	}]
			};
		}
	};
}();